Figure 2.1: Ganache Screen

Ganache is an improved version of a virtual blockchain, earlier

known as “Testrpc”. Ganache sets up 10 default Ethereum

addresses, complete with the private keys and all, and each pre-

loaded with 100 Ethers. The beauty of Ganache is that there is no

requirement of “mining”, and it immediately confirms any transaction

coming its way. This fast-tracks the development. You can write the

unit tests for your code which executes on this simulated blockchain,

deploys the smart contracts, plays around, and calls the functions.

Every time you restart Ganache, it’s freshly ready for further

simulation or new tests, returning all the addresses to their initial

state of 100 Ether.

Ganache comes in two forms – UI based, that we have already run,

and CLI (command line interface). The UI version is recommended

because of its simplicity. When we run Ganache, it will run on a

particular default port and IP address, which is localhost:7545 or

127.0.0.1:7545.